import os

#题目有点没看懂 不知道是命名文件还是文件夹
if __name__ == '__main__':
    lessonsPath = os.path.join('.', 'lessons')
    fileList = os.listdir(lessonsPath)
    for fileName in fileList:
        filePath = os.path.join(lessonsPath, fileName)
        fileName = fileName.split('-')
        fileName = ' '.join(fileName)
        fileName = fileName.capitalize()
        os.rename(filePath, os.path.join(lessonsPath, fileName))
